package com.example.mybatisplus.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mybatisplus.common.DataPermission;
import com.example.mybatisplus.entity.FmCustomer;
import com.example.mybatisplus.mapper.FmCustomerMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;

// public class ScannerPcbBindService extends ServiceImpl<ScannerPcbBindMapper, ScannerPcbBind> {
@Service
public class CustomerService extends ServiceImpl<FmCustomerMapper, FmCustomer> {


    public List<FmCustomer> customerListAll() {
        return baseMapper.customerListAll1();
    }

    public List<FmCustomer> customerListAll2() {
        return baseMapper.customerListAll2();
    }

    public List<FmCustomer> customerListAll3() {
        return baseMapper.customerListAll3();
    }

    public void  updateNew (){
        lambdaUpdate().eq(FmCustomer::getId, 1140).set(FmCustomer::getAddress, "").update();
    }
}
